package ${cfg.rootPath}.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.chaos.framework.model.entity.IdModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
*
* @author ${author}
* @since ${date}
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper =false)
@Accessors(chain = true)
@TableName("${table.name}")
@Schema(description = "${table.comment!}")
public class ${entity} extends IdModel {

<#-- ----------  BEGIN 字段循环遍历  ---------->
<#list table.fields as field>
    <#if field.name !="id"
    && field.name !="create_time"
    && field.name !="modify_time"
    && field.name !="is_delete"
    && field.name !="creator"
    && field.name !="updater"
    && field.name !="tenant_id"
    && field.name !="version" >
    <#if field.comment!?length gt 0>

    @ApiModelProperty(value = "${field.comment}")
    </#if>
    @TableField("${field.name}")
    private ${field.propertyType} ${field.propertyName};

    </#if>
</#list>

}
